package com.marmot.cloud.framework.core.ddd.annotation;

import java.lang.annotation.*;

/**
 * 领域模型标记-聚合根
 */
@DDDAnnotation
@Retention(RetentionPolicy.SOURCE)  //设置SOURCE相当与注释作用
@Documented
@Target(value = {ElementType.FIELD})  //只能放在属性，标识聚合根
public @interface DomainAggregateRoot {
    String alias() default "";

    String description() default "";
}
